<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class Card extends Model
{
	protected $fillable = ['origin_id','receive_id','name','des','is_use','headline_time'];//可以注入的字段
    public function originer(){
    	return $this->belongsTo('\App\User','origin_id','id');//模型关联，model 外键 post的主键
    }
    public function receiver(){
    	return $this->belongsTo('\App\User','receive_id','id');//模型关联，model 外键 post的主键
    }
}
